<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

$route['default_controller'] = "home";
$route['404_override'] = '';

$route['^vn/(.+)$'] = "$1";
$route['^en/(.+)$'] = "$1";

$route['^vn$'] = $route['default_controller'];
$route['^en$'] = $route['default_controller']; 

$route['vn/lien-he.html'] = "lienhe/lienhe";
$route['vn/lien-he/(.*)'] = "lienhe/lienhe/$1";
$route['en/lien-he.html'] = "lienhe/lienhe";
$route['en/lien-he/(.*)'] = "lienhe/lienhe/$1";
/*chon templates*/
$route['vn/chon-mau.html'] = "chonmau/chonmau";
$route['vn/chon-mau/(.*)'] = "chonmau/chonmau/$1";
$route['vn/chon-mau/detail/(.*)'] = "chonmau/detail/$1";
$route['en/chon-mau.html'] = "chonmau/chonmau";
$route['en/chon-mau/(.*)'] = "chonmau/chonmau/$1";
$route['en/chon-mau/detail/(.*)'] = "chonmau/detail/$1";

/*upload mau*/
$route['vn/upload'] = "upload/upload";
$route['vn/upload/(.*)'] = "upload/upload/$1";
$route['en/upload'] = "upload/upload";
$route['en/upload/(.*)'] = "upload/upload/$1";

/*san pham*/
$route['vn/dich-vu.html'] = "sanpham/sanpham/index";
$route['vn/dich-vu/(.*)'] = "sanpham/sanpham/$1";
$route['vn/dich-vu/san-pham/(.*)'] = "sanpham/sanpham/index/$1";
$route['en/dich-vu.html'] = "sanpham/sanpham";
$route['en/dich-vu/(.*)'] = "sanpham/sanpham/$1";

/*in tai chinh*/
$route['vn/in-tai-chinh.html'] = "intaichinh/intaichinh";
$route['vn/in-tai-chinh/(.*)'] = "intaichinh/intaichinh/$1";
$route['en/in-tai-chinh.html'] = "intaichinh/intaichinh";
$route['en/in-tai-chinh/(.*)'] = "intaichinh/intaichinh/$1";
/*Tu van*/
$route['vn/tu-van'] = "tuvan/tuvan/index";
$route['vn/tu-van.html'] = "tuvan/tuvan/index";
$route['vn/tu-van/(.*)'] = "tuvan/tuvan/$1";
//$route['vn/tu-van/chi-tiet/(.*)'] = "tuvan/tuvan/detail/$1";
$route['en/tu-van.html'] = "tuvan/tuvan/index";
$route['en/tu-van/chi-tiet/(.*)'] = "tuvan/tuvan/detail/$1";
$route['en/tut-van/(.*)'] = "tuvan/tuvan/$1";
/*San pham*/
$route['vn/san-pham.html'] = "sanpham/sanpham";
$route['vn/san-pham/detail/(.*)'] = "sanpham/sanpham/$1";

$route['en/san-pham.html'] = "sanpham/sanpham";
$route['en/san-pham/detail/(.*)'] = "sanpham/sanpham/detail/$1";

/*banner*/
$route['vn/banner'] = "banner/banner/index";
$route['vn/banner/top/(.*)'] = "banner/banner/top/$1";
$route['vn/banner/(.*)'] = "banner/banner/$1";

$route['en/banner'] = "banner/banner";
$route['en/banner/(.*)'] = "banner/banner/$1";

/*$route['en/tu-van.html'] = "tuvan/tuvan";
$route['en/tu-van/(.*)'] = "tuvan/tuvan/$1";*/
?>
